package com.shanlin.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.shanlin.entity.ItemDesc;
import com.shanlin.service.ItemDescService;

@RequestMapping("/desc")
@RestController
public class ItemDescController {
	@Autowired
	private ItemDescService itemDescService;
	@ResponseBody
	@RequestMapping("/query")
	public List<ItemDesc> errorDemo() {
		System.out.println("行了");
		return itemDescService.queryDesc();
	}
}
